﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Aga.GestionDeArchivos.Web.Models.Users
{

    public class EditModel : BaseModel
    {
        public int Id { get; set; }

        [Required]
        [Display(Name = "Usuario")]
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "Email")]
        public string Email { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "Confirme Email")]
        [Compare("Email", ErrorMessage = "El Email y su confirmación no coinciden.")]
        public string ConfirmEmail { get; set; }

        [Required]
        [Display(Name = "Nombre")]
        public string FirstName { get; set; }

        [Display(Name = "Apellido")]
        public string LastName { get; set; }

        [Display(Name = "Es Externo")]
        public bool IsExternal { get; set; }
    }
}